{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav -->
                        <!-- nav -->
            

            
    <div class="main-title">
        <h2>编辑分类</h2>
    </div>
    <form action="{eval echo site_url('system/contentcategory_medit')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">名称<span class="check-tips">（用于显示的分类名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$item['title']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">代码识别标志<span class="check-tips">（可选）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="code" value="{$item['code']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序<span class="check-tips">（用于分组显示的顺序）</span></label>
            <div class="controls">
                <input type="text" class="text input-small" name="sort" value="{$item['sort']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上级分类<span class="check-tips">（所属的上级分类）</span></label>
            <div class="controls">
                <select name="pid">
					<option value="0">顶级分类</option>
					<!--{if ($station!='') }-->
						<!--{loop $station $v}-->
					<option<!--{if ($item['pid']==$v['id'])}--> selected<!--{/if}--> value="{$v['id']}">{$v['title']}</option>
						<!--{if ($v['children']!='') }-->
							<!--{loop $v['children'] $v1}-->
					<option<!--{if ($item['pid']==$v1['id'])}--> selected<!--{/if}--> value="{$v1['id']}"> └ {$v1['title']}</option>
							<!--{/loop}-->
						<!--{/if}-->
						
						<!--{/loop}-->
					<!--{/if}-->
				</select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">是否隐藏<span class="check-tips"></span></label>
            <div class="controls">
                <label class="radio"><input type="radio" name="hide"<!--{if ($item['hide']==1)}--> checked<!--{/if}--> value="1">是</label>
                <label class="radio"><input type="radio" name="hide"<!--{if ($item['hide']==0)}--> checked<!--{/if}--> value="0">否</label>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">分组<span class="check-tips">（用于后台显示）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="group" value="{$item['group']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">说明<span class="check-tips">（分类详细说明）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="tip" value="{$item['tip']}">
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$item['id']}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>

<!--F-->{load footer}